import Vue from 'vue'
import Vuex from 'vuex'
import about from './about'

Vue.use(Vuex)

const store = new Vuex.Store({
    state: {
      testB: "Test B",
      dishList: [],
      isShowDataDialog: false,
      dataDialogData: [],
    },
    mutations: {
      upateDishList(state, data){
        state.dishList = data;
      },
      updateIsShowDataDialog(state, bealoon){
        state.isShowDataDialog = bealoon;
      },
      updateDataDialogData(state, arr){
        state.dataDialogData = arr
      },
    },
    actions: {
      updateA() {
        console.log('unpateA')
      }
    },
    modules: {
      about
    }
})

export default store